<template>  
  <div>
    <el-menu theme="dark" default-active="1" class="el-menu-demo" mode="horizontal" @select="handleSelect">
      <el-menu-item index="1">客房状态</el-menu-item>
      <el-submenu index="2">
        <template slot="title">房间配置</template>
        <el-menu-item index="2-1">楼层配置</el-menu-item>
        <el-menu-item index="2-2">房间配置</el-menu-item>
      </el-submenu>
      <el-menu-item index="3">系统设置</el-menu-item>
    </el-menu>
  </div>
</template>

<script>
  export default {
    methods: {
      handleSelect(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>